Introduction
We are going to reproduce three different plots, of which we are only given the data set and the final image file. Each of them has two versions:
- The first version is a plot made just using the layer functions of
ggplot2and leaving everything else with the defaults. This is, usingggplot,geom_*,stat_*andannotate_*functions (click on the image to see it bigger).
- The second version builds from the first plot to create a more
complex display with customized
scales_*,coord_*,facet_*ortheme_*. Helper functions such aslabs()orguides()could also be used (click on the image to see it bigger).